package org.csu.mybigpro.DTO;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GetThreadByIdRspVO {

    private Long id;
    private String title;
    private String content;
    private Long authorId;
    private String authorName;
    private String authorAvatar;
    private LocalDateTime createdAt;
    private int repliesTotal;
    private List<Replies> repliesList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Replies{
        private Long id;
        private String content;
        private Long authorId;
        private String authorName;
        private String authorAvatar;
        private LocalDateTime createdAt;
        private Integer thumbsUpCount;
    }

}
